<template>
  <div class="wrap">
     <transition name="router-fade" mode="out-in">
        <router-view></router-view>
      </transition>
   </div>
</template>

<script>

    export default {
      
    }

</script>
<style lang="scss" scoped>
@import './common/styles/reset.css';//在页面最大的顶层router中加入reset样式表
@import './common/styles/mixins';
.router-fade-enter-active, .router-fade-leave-active {
      transition: opacity .3s;
}
.router-fade-enter, .router-fade-leave-active {
      opacity: 0;
}
</style>

<!-- <template>
  <div id="app">
    <div class="tab">
        <div class="tab-item">
               <router-link to="/foo">Go to Foo</router-link>
        </div>
          <div class="tab-item">
               <router-link to="/bar">Go to Bar</router-link>
        </div>
         
       
    </div>
    <div class="content">
    i am 
    </div>
     <router-view></router-view>
  </div>
</template>

<script>
import header from './components/header/header.vue';
import footer from './components/footer/footer.vue';

export default {
  name: 'app',
  components: {
    'v-header': header
  }
};
</script>
<style lang="scss" scoped>
@import './common/styles/mixins.scss';
.router-link-active {
  color: red;
}

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.tab{
  display: flex;
  width: 100%;
  height: px2rem(40);
  line-height: px2rem(40);
  .tab-item{
    flex: 1;
    text-align:center;
  }
}
</style>
 -->